home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / UTILFILE / MANSHARE.LZH / MENU-MAN.ZIP / MENU-MAN.DOC next >
Text File  |  1991-05-24  |  24KB  |  593 lines

  1.  
  2.  
  3.    Ç    ────────────────────────────────────────────
  4.  Ç ┼┐────────────────────────────────────────────   
  5. ╔╬╗ ┴                                               
  6. ╨║╨ ┐                                               
  7. ╔╩╗ ┴                                               
  8. ╨ ╨                                                 
  9.  
  10.  
  11.    ▒▒▄   ▒▒▄▒▒▒▒▒▒▒▒▄▒▒▄   ▒▒▄▒▒▄   ▒▒▄           ▒▒▄   ▒▒▄   ▒▒▄   ▒▒▄   ▒▒▄  
  12.    ▒▒▒▄ ▒▒▒█▒▒█▀▀▀▀▀▀▒▒▒▄  ▒▒█▒▒█   ▒▒█           ▒▒▒▄ ▒▒▒█  ▒▒▒▒▄  ▒▒▒▄  ▒▒█  
  13.    ▒▒▒█ ▒▒▒█▒▒▒▒▒▒▒▒▄▒▒█▒▒▄▒▒█▒▒█   ▒▒█           ▒▒▒█ ▒▒▒█ ▒▒█▀▒▒▄ ▒▒█▒▒▄▒▒█  
  14.    ▒▒█▒▒▄▒▒█▒▒█▀▀▀▀▀▀▒▒█ ▀▒▒▒█▒▒█   ▒▒█           ▒▒█▒▒▄▒▒█ ▒▒▒▒▒▒█ ▒▒█ ▀▒▒▒█  
  15.    ▒▒█▒▒█▒▒█▒▒▒▒▒▒▒▒▄▒▒█   ▒▒█▒▒▒▒▒▒▒▒█           ▒▒█▒▒█▒▒█▒▒█▀▀▀▒▒▄▒▒█   ▒▒█  
  16.     ▀▀ ▀▀ ▀▀ ▀▀▀▀▀▀▀▀ ▀▀    ▀▀ ▀▀▀▀▀▀▀▀            ▀▀ ▀▀ ▀▀ ▀▀    ▀▀ ▀▀    ▀▀  
  17.  
  18.  
  19.  
  20.  
  21. Welcome to MENU-MAN, a utility routine to display
  22. custom user selection menus from batch files! 
  23.  
  24.  
  25.  
  26.  
  27. MENU-MAN allows the display of user selection menus from within batch
  28. files. These menus are controlled by command line options and can contain
  29. a title and up to twenty-three selection option lines that are generated from
  30. REM lines in the batch which follow the call to MENU-MAN. Options
  31. include a user response time limit, menu positioning, erasing the screen
  32. before/after menu display, and menu sound, color and type customization. 
  33.  
  34.  
  35.  
  36. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  37.  
  38. M E N U - M A N   U T I L I T Y   M A N U A L
  39.  
  40. MENU-MAN Version 1.20
  41.  
  42. Released    April 26, 1991
  43. ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  44. Copyright (C) 1990-1991
  45. by Micrometric 
  46. All rights reserved. 
  47.  
  48. MENU-MAN is distributed as SHAREWARE and, as such, may be copied
  49. and shared on a private non-commercial basis with others in its unmodified
  50. form. Liability is limited to replacing the software for registered users.
  51. There is no liability for any damage or loss caused by this software, directly
  52. or indirectly. 
  53.  
  54.      ┌───────┐                                                 
  55. ┌────┴──┐    │                                                 
  56. │  ┌────┴──┐ │                                                 
  57. │  │       │ │   Member, Association of Shareware Professionals
  58. │  │   o   ├─┘                                                 
  59. └──┤   │   │                                                   
  60.    └───────┘                                                   
  61.  
  62. Please send comments, manual corrections and enhancement suggestions to:
  63.  
  64.  
  65.             Kirk Groome 
  66.             Micrometric 
  67.             98 Dade Avenue 
  68.             Sarasota, FL  34232 
  69.  
  70.             Voice/FAX (813) 377-2515 
  71.  
  72.  
  73.  
  74.             REGISTRATION SERIAL NUMBER
  75. ┌──────────────────────────────────────────────────────────┐
  76. │                                                          │
  77. │                                                          │
  78. │                                                          │
  79. │                                                          │
  80. │                                                          │
  81. │                                                          │
  82. │                                                          │
  83. │                                                          │
  84. │                                                          │
  85. │                                                          │
  86. └──────────────────────────────────────────────────────────┘
  87.  
  88.  
  89.  
  90. PKZIP, PKUNZIP and PKSFX are trademarks of PKWARE, Inc.
  91. MS-DOS is a registered trademark of the Microsoft Corporation. 
  92. IBM PC, XT, AT and PC-DOS are registered trademarks of the IBM Corporation.
  93. TABLE OF CONTENTS
  94.  
  95.  
  96. INTRODUCTION . . . . . . . . . . . . . . .  5
  97.    Major Features. . . . . . . . . . . . .  5
  98.    System Requirements . . . . . . . . . .  5
  99.    Manual Format . . . . . . . . . . . . .  6
  100.       Page layout. . . . . . . . . . . . .  6
  101.       Brackets and parentheses . . . . . .  6
  102.       Computer key conventions . . . . . .  6
  103.       Action steps . . . . . . . . . . . .  6
  104.       ■■■■-MAN programs. . . . . . . . . .  6
  105.       Shareware distributed documentation manual  6
  106.    Shareware . . . . . . . . . . . . . . .  7
  107.  
  108. INSTALLING THE SYSTEM  . . . . . . . . . .  9
  109.  
  110. RUNNING MENU-MAN . . . . . . . . . . . .   11
  111.    Identifier. . . . . . . . . . . . . .   11
  112.    Batch-file-name . . . . . . . . . . .   11
  113.    Options . . . . . . . . . . . . . . .   12
  114.    Title-line. . . . . . . . . . . . . .   12
  115.    Selection-X-line. . . . . . . . . . .   12
  116.  
  117. MENU-MAN OPTIONS . . . . . . . . . . . .   13
  118.    Display Time. . . . . . . . . . . . .   13
  119.    Exploding Window Time . . . . . . . .   14
  120.    Sound . . . . . . . . . . . . . . . .   14
  121.    Menu Position . . . . . . . . . . . .   15
  122.    Menu Colors . . . . . . . . . . . . .   15
  123.    Menu Highlight Location . . . . . . .   17
  124.    Display Text Only . . . . . . . . . .   17
  125.    Shadow Border . . . . . . . . . . . .   18
  126.    Erase Before. . . . . . . . . . . . .   18
  127.    Erase After . . . . . . . . . . . . .   18
  128.  
  129.  
  130.  
  131.  
  132. MENU-MAN OPERATION . . . . . . . . . . .   19
  133.    ERRORLEVEL Testing. . . . . . . . . .   19
  134.    EXAMPLE . . . . . . . . . . . . . . .   19
  135.    Shareware message . . . . . . . . . .   20
  136.  
  137. INTRODUCTION
  138.  
  139. MENU-MAN allows the display of user selection menus from within batch
  140. files. These menus are controlled by command line options and can contain
  141. a title and up to twenty-three selection option lines that are generated from
  142. REM lines in the batch which follow the call to MENU-MAN. Options
  143. include a user response time limit, menu positioning, erasing the screen
  144. before/after menu display, and menu sound, color and type customization. 
  145.  
  146. Major Features  
  147.  
  148. ■  Over 200 different menus per batch file.
  149. ■  Simple format:MENU-MAN # filename options
  150.       REM TITLE
  151.       REM USER SELECTION 1
  152.       REM USER SELECTION 2
  153.       REM ...
  154. ■  User defined window selection menus embedded in batch files.
  155. ■  Automatic color display on systems so equipped.
  156. ■  User control over most window menu parameters on a per menu basis.
  157. ■  Display selection menus or informational messages.
  158. ■  MENU-MAN sets the ERRORLEVEL environment variable for easy
  159.    user selection testing in the batch file.
  160. ■  User selections are imbedded in the batch file, not seperated into an-
  161.    other file.
  162. ■  Menu may be displayed for a limited time to aid in uses such as AU-
  163.    TOEXEC for unattended operation.
  164. ■  A sound may be made when the window is displayed. The pitch and
  165.    duration of the sound is adjustable.
  166. ■  The menu colors are adjustable.
  167. ■  The screen screen may be erased before the menu is displayed or the
  168.    menu can overlay the current screen display.
  169. ■  The menu may be erased after user selection or left.
  170. ■  The position of the menu - Up, center, down and left, center, right -
  171.    may be specified.
  172. System Requirements  
  173.  
  174. MENU-MAN will run on an IBM PC, XT, AT or true compatibles. It has
  175. been tested with PC-DOS/MS-DOS operating systems, version 3.0 through
  176. version 5.0. The program will determine what type of display monitor is
  177. available and adjust itself accordingly. 
  178.  
  179. Manual Format  
  180.  
  181. This manual is divided into several introductory chapters followed by chap-
  182. ters for operating MENU-MAN. The format of these chapters and the
  183. information presented therein has been standardized using the following
  184. conventions.
  185.  
  186. Page layout - Each page has a header detailing the chapter and the pro-
  187. gram version covered. A footer displays the manual page number.
  188.  
  189. Brackets and parentheses - Brackets, [...], are used in the manual to specify
  190. what should be entered in response to the current prompt. If a character
  191. string is to be entered, the type of character is noted, such as ALPHA, NU-
  192. MERIC, ANY, etc. Parentheses, (..), are used for comments.
  193.  
  194. Computer key conventions - Keys specified in the manual text that are not
  195. in entry brackets are shown as reversed, such as ■ESCAPE■. All key referenc-
  196. es are in capital letters for clarity.
  197.  
  198. Action steps - Some procedures may require selection from a menu of op-
  199. tions, inputting data or following a sequence of steps. Most manual sections
  200. will first give an overview of the function or task under discussion and then
  201. detail the various action operating procedures. In order to make this manu-
  202. al easier to use a symbol, ■ , marks the beginning of each of these action
  203. operating procedures.
  204.  
  205. ■■■■-MAN programs - The general group of shareware programs by Mic-
  206. rometric is referred to by the name ■■■■-MAN. It may also be used in
  207. reference to a specific program in that group.
  208. Shareware distributed documentation manual - The documentation file in-
  209. cluded on the shareware distribution diskette contains the same information
  210. as the printed and bound manual supplied as part of registration with three
  211. exceptions, the result of the word processor, formatting and printer used.
  212. The first is that the page headers and footers are NOT present in the
  213. shareware version (If LASR-MAN is used to print the documentation, use
  214. of its page header option will supply the page numbers). The second is that
  215. all of the control display characters (ASCII 1-31) and the reverse print
  216. keyboard codes are NOT shown properly. Finally, bolding, underlining and
  217. special symbols are NOT present.
  218.  
  219. Shareware  
  220.  
  221. MENU-MAN is being distributed as SHAREWARE. The SHAREWARE
  222. concept allows users to examine a program on a trial basis at no (or mini-
  223. mal) charge before purchasing it. In addition, by decreasing marketing costs,
  224. professional quality software may be distributed for a fraction of the cost
  225. of a comparable commercial product.  Regardless of whether you register
  226. the program, please help distribute MENU-MAN by sharing unmodified
  227. copies of it and its files with others. If you find MENU-MAN of value, you
  228. must register your program use. This will provide you with: 
  229.  
  230.    *  A 7" x 8 1/2" printed and bound manual. 
  231.    *  MENU-MAN phone or mail support for one year. 
  232.    *  Notification of the next MENU-MAN release. 
  233.    *  Sincere thanks for your support of the SHAREWARE concept. 
  234.  
  235. Program Registration . . . . . . . . . . . $15. 
  236. Latest Version Diskette. . . . . . . . . . $10. 
  237. Package (All the above). . . . . . . . . . $20. 
  238.  
  239. ADDRESS: Micrometric 
  240.          98 Dade Avenue 
  241.          Sarasota, FL  34232 
  242. PHONE:   Voice/FAX (813) 377-2515 
  243.  
  244. For ease in program registration, the INST-MAN program may be used to
  245. generate an order form. 
  246. This program is produced by a member of the Association of Shareware
  247. Professionals (ASP). ASP wants to make sure that the shareware principal
  248. works for you. If you are unable to resolve a shareware-related problem
  249. with an ASP member by contacting the member directly, ASP may be able
  250. to help. The ASP Ombudsman can help you resolve a dispute or problem
  251. with an ASP member, but does not provide technical support for members'
  252. products. Please write to the ASP Ombudsman at 545 Grover Road, Musk-
  253. egon, MI 49442-9427, or send a Compuserve message via easyplex to ASP
  254. Ombudsman 70007,3536. 
  255. INSTALLING THE SYSTEM  
  256.  
  257. For the procedures to install MENU-MAN and print this documentation,
  258. see the README file on the shareware distribution diskette.
  259.  
  260.  
  261.    FOR PROPER OPERATION, ALL REQUIRED MENU-MAN
  262.    FILES *MUST* BE PLACED ON PATH REFERENCED SUB-
  263.    DIRECTORIES!
  264.  
  265. RUNNING MENU-MAN 
  266.  
  267. The syntax to execute the MENU-MAN utility program from a batch file
  268. is: 
  269.  
  270.    ...
  271.    MENU-MAN identifier batch-file-name [option a] [option b] [...]
  272.    REM title-line
  273.    REM selection-1-line
  274.    REM selection-2-line
  275.    ...
  276.    (BATCH FILE LINE THAT DOES NOT START "REM...")
  277.    ...
  278.  
  279. The program name and all command line parameters must be separated by
  280. at least one space. If no parameters are present, a MENU-MAN syntax
  281. summary will be displayed. 
  282.     
  283. Identifier  
  284.  
  285. identifier is a unique character used to identify the location in the batch-
  286. file-name batch file from where this call was made. MENU-MAN searches
  287. this batch file for a line with its name (MENU-MAN) and this identifier.
  288. The title and the user selection options are then taken from following REM
  289. statements. 
  290.           
  291. Batch-file-name  
  292.  
  293. batch-file-name is the name of the batch file which this statement is in. The
  294. easiest was to specify this parameter is to use the batch file variable %0,
  295. to which DOS assigns the batch file name. MENU-MAN adds the extension
  296. .BAT if it is not present, and will first search the current drive/directory for
  297. this name. If it is not found, MENU-MAN will then search each
  298. drive/directory in the PATH statement in turn. If no match is found, an
  299. error message is displayed and MENU-MAN returns control to the batch
  300. file that called it. 
  301.  
  302. If your batch file changes the current drive/directory to one that is not in
  303. the PATH before it executes MENU-MAN , you must specify the full path
  304. drive/directory along with the batch-file-name on the command line.  Options  
  305.  
  306. options may be specified after the first two required parameters and may
  307.    appear in any order. The individual options are covered in the next
  308.    section. 
  309.  
  310. Title-line  
  311.  
  312. Following the MENU-MAN command line should be a batch file REM
  313. statement. The contents of this statement will be used as the title of the
  314. displayed menu. 
  315.  
  316. Selection-X-line  
  317.    
  318. Following the REM title statement should be a set of batch file REM
  319. statements that are the desired selection options for this menu. Each REM
  320. will be displayed on a separate menu line in the order that they appear in
  321. the batch file. The first numeric or capitalized alpha character that has not
  322. been highlighted on previous menu lines will be highlighted on this menu
  323. line and may be used for user selection. Up to twenty-three menu lines may
  324. be specified. MENU-MAN will scan for REM menu lines until the maxi-
  325. mum number is reached or a non REM statement line encountered in the
  326. batch file. 
  327.  
  328. MENU-MAN OPTIONS
  329.  
  330. The MENU-MAN options allow customizing the individual menus. None of
  331. these options are required: MENU-MAN will produce selection menus
  332. without any options being specified. Options may be specified as either
  333. upper or lower case letters. 
  334.  
  335. Display Time  
  336.  
  337. The selection menu is normally displayed with a bottom border line of
  338. "Please Enter Choice!". For use in batch file such as AUTOEXEC.BAT
  339. where you normally want a default selection and the ability to run without
  340. user input, a display time option may be used. When used, this option
  341. changes the bottom border line to read "Selection Time Remaining #"
  342. where # is the number of seconds remaining to make a choice. If no user
  343. choice is before the option time expires, MENU-MAN returns to the batch
  344. file with ERRORLEVEL equal to zero. 
  345.                                                                                 
  346. The display time option is: 
  347.     
  348.       T##### 
  349.     
  350.          where:##### is the number of seconds to wait for a user
  351.                   response and may range from zero to 32,767. 
  352.  
  353. EXAMPLE: An option of T12 will wait twelve seconds for a user selection.
  354. Exploding Window Time  
  355.  
  356. The selection menu is built in stages so as to give an "exploding" appear-
  357. ance. Normally, there is no delay time between these stages. However, in
  358. order to extend the "explosion", this option allows a time delay to be placed
  359. between the stages. The default is 20 milliseconds. 
  360.  
  361. The exploding window time option is: 
  362.     
  363.       W#####
  364.  
  365.          where:##### is the number of milliseconds to delay be-
  366.                   tween building stages of the window menu and
  367.                   may range from zero to 32,767. 
  368.     
  369. EXAMPLE: An option of W200 will delay 200 milliseconds between stages
  370.          in building the menu window. 
  371.  
  372. Sound  
  373.  
  374. A short beep sound is made to get the users attention when the selection
  375. menu is displayed. Both the pitch and the length of this sound may be
  376. changed. If either value is set to zero, no sound will be produced when the
  377. menu is displayed. 
  378.  
  379. The sound option is: 
  380.  
  381.       B#####,#####
  382.  
  383.          where: the first ##### is the pitch in cycles per second
  384.                   and the second is the length in milliseconds.
  385.                   These numbers  may range from zero to 32,767.
  386.                   The default values are a pitch of 700 Hz and
  387.                   200 milliseconds. 
  388.  
  389. EXAMPLE: An option of B512,500 will sound a half second 512 HZ tone
  390.          as the selection menu is displayed. 
  391. Menu Position  
  392.  
  393. The default selection menu position is the center of the screen. The menu
  394. position option allows menus to be placed at other locations. 
  395.  
  396. The menu position option is: 
  397.  
  398.       P{V},{H}
  399.  
  400.          where:{V} is the vertical position code; 
  401.     
  402.                   T - Top 
  403.                   C - Center 
  404.                   B - Bottom 
  405.  
  406.                {H} is the horizontal position code; 
  407.  
  408.                   L - Left 
  409.                   C - Center 
  410.                   R - Right 
  411.  
  412. EXAMPLE: An option of PT,R will display the selection menu in the up-
  413.          per right corner of the screen. 
  414.  
  415. Menu Colors  
  416.  
  417. There are five areas of the selection menu that can have colors assigned to
  418. them. These areas and their default colors are shown below. 
  419.  
  420.     ┌──────────────────────────────────────────────────────────────────┐
  421.     │ AREA                 CODE   FOREGROUND      BACKGROUND     VALUE │
  422.     ├──────────────────────────────────────────────────────────────────┤
  423.     │ Non-highlighted test  N     Light grey      Blue            28   │
  424.     │ Highlighted text      H     White           Blue            31   │
  425.     │ Border                B     Yellow          Blue            30   │
  426.     │ Title                 T     Light cyan      Blue            27   │
  427.     │ Shadow border         S     Light grey      Black           7    │
  428.     │ Option highlight bar  O     White           Red             79   │
  429.     └──────────────────────────────────────────────────────────────────┘
  430. The color codes are shown in the table below. To have an area blink, add
  431. 128 to the color code chosen. 
  432.  
  433.     ┌────────────┬───────────────────────────────────────────────────────┐
  434.     │            │  -  -  -  -  B  A  C  K  G  R  O  U  N  D  -  -  -  - │
  435.     │            │                                                       │
  436.     │ FOREGROUND │ BLACK  BLUE  GREEN   CYAN    RED MAGENTA BROWN  WHITE │
  437.     │            ├───────────────────────────────────────────────────────┤
  438.     │ BLACK      │   0     16     32     48     64     80     96    112  │
  439.     │ BLUE       │   1     17     33     49     65     81     97    113  │
  440.     │ GREEN      │   2     18     34     50     66     82     98    114  │
  441.     │ CYAN       │   3     19     35     51     67     83     99    115  │
  442.     │            │                                                       │
  443.     │ RED        │   4     20     36     52     68     84    100    116  │
  444.     │ MAGENTA    │   5     21     37     53     69     85    101    117  │
  445.     │ BROWN      │   6     22     38     54     70     86    102    118  │
  446.     │ LIGHTGREY  │   7     23     39     55     71     87    103    119  │
  447.     │            │                                                       │
  448.     │ DARKGREY   │   8     24     40     56     72     88    104    120  │
  449.     │ LIGHTBLUE  │   9     25     41     57     73     89    105    121  │
  450.     │ LIGHTGREEN │  10     26     42     58     74     90    106    122  │
  451.     │ LIGHTCYAN  │  11     27     43     59     75     91    107    123  │
  452.     │            │                                                       │
  453.     │ LIGHTRED   │  12     28     44     60     76     92    108    124  │
  454.     │ LIGHTMAGENTA  13     29     45     61     77     93    109    125  │
  455.     │ YELLOW     │  14     30     46     62     78     94    110    126  │
  456.     │ WHITE      │  15     31     47     63     79     95    111    127  │
  457.     └────────────┴───────────────────────────────────────────────────────┘
  458.  
  459. The color option is: 
  460.  
  461.       C@###
  462.  
  463.          where:@ is the menu area code from the first table above
  464.                   (N, H, B, T or S).
  465.                ### is the color value from the second table above.
  466.                   
  467. EXAMPLE: An option of CT113 will display the title in dark blue on a
  468.          white background. 
  469. Menu Highlight Location  
  470.  
  471. The default menu highlight location is the first menu line. This option
  472. allows the highlight to be initially located on any valid menu line when the
  473. menu is displayed. 
  474.  
  475. The menu highlight location option is:
  476.  
  477.       L##
  478.  
  479.          where:## is the menu line to highlight.
  480.  
  481. EXAMPLE: An option of L8 will highlight the eight menu line.
  482.  
  483. Display Text Only  
  484.  
  485. MENU-MAN normally displays a menu consisting of a title line and a
  486. variable number of menu lines and then waits for the user to select a menu
  487. line. This option allows the text and the menu lines to be displayed without
  488. requesting a selection from the user. 
  489.     
  490. The display text only option is:
  491.  
  492.       M#####
  493.     
  494.          where:##### is the number of seconds to display the text
  495.                   and the menu lines and may range from zero to
  496.                   32,767. 
  497.  
  498. EXAMPLE: An options M5 will display the menu title and text lines for
  499.          five seconds. There is no user selection required nor is there
  500.          a countdown of the display time left. 
  501. Shadow Border  
  502.  
  503. The default menu display uses a shadow border as if a light was shining on
  504. the raised menu from the upper left. This option removes this shadow. 
  505.  
  506. The shadow border option is: 
  507.  
  508.       S-
  509.  
  510. EXAMPLE: An option of S- will not display a shadow border. 
  511.  
  512. Erase Before  
  513.  
  514. By default, the selection menu overlays the current screen display. This
  515. option will first clear the screen before the selection menu is displayed. 
  516.  
  517. The erase before option is: 
  518.  
  519.       EB
  520.  
  521. EXAMPLE: An option of EB will erase the screen before the selection 
  522.          menu display. 
  523.  
  524. Erase After  
  525.  
  526. By default, the selection menu is left on the screen display after the user
  527. selection has been made. This option will remove the selection menu after
  528. a choice has been made and the screen will be restored to what it was
  529. before the menu was displayed. A line is then displayed showing the user
  530. choice that was made. 
  531.  
  532. The erase after option is: 
  533.  
  534.       EA
  535.  
  536. EXAMPLE: An option of EA will remove the user selection menu after a
  537.          choice of the third option line has been made and then dis-
  538.          play the following line: 
  539.                                                                                 
  540.             Your Choice was "option 3 menu line"!
  541. MENU-MAN OPERATION
  542.  
  543. After MENU-MAN has displayed the menu and accepted the users
  544. response, it will exit and return to the batch file with the ERRORLEVEL
  545. parameter set to the number of the menu line selected by the user. 
  546.  
  547. ERRORLEVEL Testing  
  548.  
  549. To determine which selection the user has made, you must test the variable
  550. ERRORLEVEL in the batch file. To determine if the user selected option
  551. four, use: 
  552.  
  553.    if ERRORLEVEL 4 if NOT ERRORLEVEL 5 goto SELECT4
  554.  
  555. When using the display time option, to determine if the user made a choice
  556. (this can be used as a default), use: 
  557.  
  558.    if ERRORLEVEL 0 if NOT ERRORLEVEL 1 goto NOCHOICE
  559.  
  560. EXAMPLE  
  561.  
  562. This batch file segment will produce the selection menu show below -
  563.  
  564. ... 
  565. MENU-MAN C %0 
  566. rem This line will be the Title 
  567. rem option 1 menu line 
  568. rem option 2 menu line 
  569. rem option 3 menu line 
  570. rem option 4 menu line 
  571. if ERRORLEVEL 1 if NOT ERRORLEVEL 2 goto SELECT1
  572. if ERRORLEVEL 2 if NOT ERRORLEVEL 3 goto SELECT2
  573. ... 
  574. ┌──────────────────────────────────┐
  575. │ ╒═This line will be the Title═╕  │
  576. │ │ option 1 menu line          │█ │
  577. │ │ option 2 menu line          │█ │
  578. │ │ option 3 menu line          │█ │
  579. │ │ option 4 menu line          │█ │
  580. │ ╘═══ Please Enter Choice! ════╛█ │
  581. │  ███████████████████████████████ │
  582. └──────────────────────────────────┘
  583. Shareware message  
  584.  
  585. A shareware message may be randomly displayed at the start of MENU-
  586. MAN. 
  587.  
  588. ■  To continue with the MENU-MAN program after the display of the
  589.    shareware message, press any key.
  590.  
  591. By registering your use of MENU-MAN, you will be able to use the regis-
  592. tration serial number to suppress the shareware message display.
  593.